// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui';
import 'swiper/dist/css/swiper.css';
import 'element-ui/lib/theme-chalk/index.css';
import 'normalize.css/normalize.css'
import AppFooter from '@/components/AppFooter'
import SideNavigation from '@/components/SideNavigation'
import AppShoppingCart from '@/components/AppShoppingCart'
import config from './config'
Vue.use(ElementUI);

Vue.config.productionTip = false
Vue.use(config)//等价于 config.install(Vue,{第二个参数随便传})
Vue.component('AppFooter',AppFooter)//底部导航
Vue.component('SideNavigation',SideNavigation)//右侧导航
Vue.component('AppShoppingCart',AppShoppingCart)//购物车

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
